/* Tetris background animation */
.tetris-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: linear-gradient(to bottom, #ffffff, #ffffff, rgba(249, 250, 251, 0.3));
  overflow: hidden;
}

.grid-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(to right, #e0e0e0 1px, transparent 1px),
    linear-gradient(to bottom, #e0e0e0 1px, transparent 1px);
  background-size: 96px 96px;
  opacity: 0.6;
  pointer-events: none;
}

.tetris-square {
  position: absolute;
  width: 96px;
  height: 96px;
  border-radius: 0.5rem;
  opacity: 0.08;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.gradient-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.2));
  pointer-events: none;
}

/* Responsive adjustments for the grid */
@media (max-width: 640px) {
  .grid-overlay {
    background-size: 48px 48px;
  }
  .tetris-square {
    width: 48px;
    height: 48px;
  }
}

@media (min-width: 641px) and (max-width: 1024px) {
  .grid-overlay {
    background-size: 64px 64px;
  }
  .tetris-square {
    width: 64px;
    height: 64px;
  }
}

/* Ensure content is above the background */
.app-container {
  position: relative;
  z-index: 1;
}

:root {
    /* Light theme variables */
    --background: #ffffff;
    --foreground: #020817;
    --card: #ffffff;
    --card-foreground: #020817;
    --popover: #ffffff;
    --popover-foreground: #020817;
    --primary: #0f172a;
    --primary-foreground: #f8fafc;
    --secondary: #f1f5f9;
    --secondary-foreground: #0f172a;
    --muted: #f1f5f9;
    --muted-foreground: #64748b;
    --accent: #f1f5f9;
    --accent-foreground: #0f172a;
    --destructive: #ef4444;
    --destructive-foreground: #f8fafc;
    --border: #e2e8f0;
    --input: #e2e8f0;
    --ring: #020817;
    --radius: 0.5rem;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    
    /* Typography System */
    --font-family-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    --font-family-mono: 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', 'Liberation Mono', 'Courier New', monospace;
    
    /* Font Sizes - Consistent Scale */
    --text-xs: 0.75rem;      /* 12px */
    --text-sm: 0.875rem;     /* 14px */
    --text-base: 1rem;       /* 16px */
    --text-lg: 1.125rem;     /* 18px */
    --text-xl: 1.25rem;      /* 20px */
    --text-2xl: 1.5rem;      /* 24px */
    --text-3xl: 1.875rem;    /* 30px */
    --text-4xl: 2.25rem;     /* 36px */
    --text-5xl: 3rem;        /* 48px */
    --text-6xl: 3.75rem;     /* 60px */
    
    /* Font Weights */
    --font-light: 300;
    --font-normal: 400;
    --font-medium: 500;
    --font-semibold: 600;
    --font-bold: 700;
    --font-extrabold: 800;
    
    /* Line Heights */
    --leading-none: 1;
    --leading-tight: 1.25;
    --leading-snug: 1.375;
    --leading-normal: 1.5;
    --leading-relaxed: 1.625;
    --leading-loose: 2;
    
    /* Letter Spacing */
    --tracking-tighter: -0.05em;
    --tracking-tight: -0.025em;
    --tracking-normal: 0em;
    --tracking-wide: 0.025em;
    --tracking-wider: 0.05em;
    --tracking-widest: 0.1em;
}

/* Dark theme variables */
[data-theme="dark"] {
    --background: #020817;
    --foreground: #f8fafc;
    --card: #020817;
    --card-foreground: #f8fafc;
    --popover: #020817;
    --popover-foreground: #f8fafc;
    --primary: #f8fafc;
    --primary-foreground: #020817;
    --secondary: #1e293b;
    --secondary-foreground: #f8fafc;
    --muted: #1e293b;
    --muted-foreground: #94a3b8;
    --accent: #1e293b;
    --accent-foreground: #f8fafc;
    --destructive: #7f1d1d;
    --destructive-foreground: #f8fafc;
    --border: #1e293b;
    --input: #1e293b;
    --ring: #cbd5e1;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-family-sans);
}

body {
    font-family: var(--font-family-sans);
    font-size: var(--text-sm);
    line-height: var(--leading-normal);
    color: var(--foreground);
    background-color: var(--background);
    transition: background-color 0.3s ease, color 0.3s ease;
    font-weight: var(--font-normal);
    letter-spacing: var(--tracking-normal);
}

.app-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header & Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(var(--background), 0.8);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.75rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 4rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: var(--text-xl);
    font-weight: var(--font-semibold);
    color: var(--foreground);
}

.logo img {
    height: 1.75rem;
}

.nav-links {
    display: flex;
    gap: 1rem;
    align-items: center;
    font-size: var(--text-sm);
}

.nav-link {
    text-decoration: none;
    color: var(--foreground);
    font-weight: var(--font-medium);
    transition: all 0.2s;
    position: relative;
    font-size: var(--text-sm);
    padding: 0.5rem;
    border-radius: var(--radius);
}

.nav-link:hover {
    color: var(--foreground);
    background-color: var(--muted);
}

.theme-toggle,
.theme-toggle:hover {
    display: none;
}

.github-link {
    display: inline-flex;
    align-items: center;
    gap: 0.125rem;
    padding: 0.125rem 0.375rem;
    background-color: #000000;
    border: 1px solid #000000;
    border-radius: var(--radius);
    text-decoration: none;
    color: #ffffff;
    font-weight: var(--font-medium);
    transition: all 0.2s;
    font-size: var(--text-sm);
}

.github-link:hover {
    background-color: #111111;
    color: #ffffff;
    transform: translateY(-1px);
}

.star-count {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    color: #ffffff;
    padding: 0.2rem 0.2rem;
    border-radius: 0.375rem;
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    transition: all 0.2s ease;
}

.star-count i {
    font-size: var(--text-xs);
    color: #ffffff;
}

.star-number {
    font-size: var(--text-base);
    font-weight: var(--font-semibold);
    color: #ffffff;
}

.github-link:hover .star-count {
    color: #ffffff;
}

.github-link:hover .star-count i {
    color: #ffffff;
}

.demo-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background-color: var(--primary);
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--primary-foreground);
    font-weight: var(--font-medium);
    transition: all 0.2s;
    font-size: var(--text-sm);
}

.demo-link:hover {
    background-color: #333333;
    transform: translateY(-1px);
}

/* Main Content */
.main-content {
    flex: 1;
    padding-top: 4rem;
}

/* Hero Section */
.hero {
    padding: 6rem 2rem 6rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
    max-width: 1600px;
    margin: 0 auto;
}

.hero-content {
    max-width: 800px;
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: var(--text-6xl);
    font-weight: var(--font-bold);
    line-height: var(--leading-tight);
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--foreground) 0%, #000000 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: var(--tracking-tight);
}

.hero .subtitle {
    font-size: var(--text-xl);
    line-height: var(--leading-relaxed);
    color: var(--muted-foreground);
    margin-bottom: 2rem;
    font-weight: var(--font-normal);
    letter-spacing: var(--tracking-normal);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.terminal {
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    margin: 0.2rem 0;
    display: inline-block;
    width: fit-content;
    max-width: 100%;
}

.terminal-header,
.terminal-content {
    padding: 1rem;
}

.terminal-content {
    position: relative;
    background-color: #1e1e1e;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.terminal-content pre {
    margin: 0;
    font-family: var(--font-family-mono);
    font-size: var(--text-sm);
    line-height: var(--leading-normal);
    overflow-x: auto;
    flex: 1;
}

.terminal-content code {
    color: #ffffff;
    background: none;
    padding: 0;
    font-family: var(--font-family-mono);
}

.copy-button {
    position: static;
    background-color: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: var(--radius);
    color: #ffffff;
    padding: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
    font-size: var(--text-sm);
    font-family: var(--font-family-sans);
    flex-shrink: 0;
}

.copy-button:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.copy-button.copied {
    background-color: #10b981;
    color: white;
}

.copy-button.copied i {
    animation: fadeOut 0.5s ease-in-out;
}

@keyframes fadeOut {
    0% { opacity: 1; }
    100% { opacity: 0; }
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: var(--font-medium);
    transition: all 0.2s;
    font-size: var(--text-sm);
    border: 1px solid transparent;
    cursor: pointer;
    font-family: var(--font-family-sans);
}

.button.primary {
    background-color: var(--primary);
    color: var(--primary-foreground);
    border-color: var(--primary);
}

.button.primary:hover {
    background-color: #1e293b;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.button.secondary {
    background-color: white;
    color: var(--foreground);
    border-color: var(--border);
}

.button.secondary:hover {
    background-color: var(--muted);
    transform: translateY(-1px);
}

.hero-visual {
    width: 100%;
    max-width: 1400px;
    max-height: 700px;
    position: relative;
    z-index: 1;
}

.app-preview {
    background-color: white;
    border: 2px solid black;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    margin: 0 auto;
    max-width: 1000px;
    max-height: 700px;
}

.app-header {
    background-color: #f0f8ff;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 2px solid black;
}

.app-controls {
    display: flex;
    gap: 6px;
}

.control {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 1px solid black;
}

.control.red { background-color: #ff5f56; }
.control.yellow { background-color: #ffbd2e; }
.control.green { background-color: #27ca3f; }

.app-title {
    font-size: 14px;
    font-weight: 500;
    color: black;
    margin-left: auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.app-content {
    padding: 0;
    display: flex;
    gap: 0;
    height: 600px;
    max-height: 600px;
    position: relative;
    overflow: hidden;
    background-color: white;
}

/* Sidebar Styles */
.app-sidebar {
    width: 180px;
    background-color: #fafafa;
    border-right: 2px solid black;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 12px;
    border-bottom: 1px solid black;
}

.sidebar-logo {
    font-size: 18px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: black;
    border-radius: 4px;
    color: white;
    font-weight: bold;
}

.sidebar-title {
    font-weight: 600;
    font-size: 14px;
    color: black;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 13px;
    border: 1px solid transparent;
}

.nav-item:hover {
    background-color: #f0f0f0;
    border-color: black;
}

.nav-item.active {
    background-color: #b3d9ff;
    color: black;
    border-color: #b3d9ff;
}

.nav-icon {
    font-size: 14px;
    width: 16px;
    text-align: center;
    font-weight: bold;
}

.nav-text {
    font-weight: 500;
}

/* Main Content Styles */
.app-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
    overflow-y: auto;
    padding: 16px;
    background-color: white;
}

.app-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
    border: 1px solid black;
    border-radius: 6px;
    padding: 12px;
    background-color: #fafafa;
}

.app-heading {
    font-size: 18px;
    font-weight: 600;
    color: black;
    margin: 0;
    border-bottom: 1px solid black;
    padding-bottom: 8px;
}

.app-description {
    color: black;
    font-size: 13px;
    line-height: 1.4;
    margin: 0;
}

/* Controls Styles */
.controls-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    padding: 8px 0;
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 120px;
}

.control-label {
    font-size: 11px;
    font-weight: 600;
    color: black;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.select-control {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 10px;
    background-color: white;
    border: 1px solid black;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.select-control:hover {
    border-color: black;
    background-color: #f0f0f0;
}

.dropdown-arrow {
    font-size: 10px;
    color: black;
}

.slider-control {
    display: flex;
    align-items: center;
    gap: 8px;
}

.slider-track {
    flex: 1;
    height: 6px;
    background-color: white;
    border-radius: 3px;
    position: relative;
    border: 1px solid black;
}

.slider-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 50%;
    background-color: #e0e0e0;
    border-radius: 3px;
}

.slider-thumb {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    background-color: black;
    border-radius: 50%;
    border: 1px solid black;
}

.slider-value {
    font-size: 12px;
    color: black;
    font-weight: 500;
    min-width: 30px;
}

/* Charts Grid */
.charts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 8px;
}

.chart-card {
    border: 1px solid black;
    border-radius: 6px;
    background-color: white;
    overflow: hidden;
}

.chart-header {
    background-color: #e6f3ff;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid black;
}

.chart-header h3 {
    font-size: 14px;
    font-weight: 600;
    color: black;
    margin: 0;
}

.chart-actions {
    display: flex;
    gap: 4px;
}

.action-icon {
    width: 16px;
    height: 16px;
    background-color: #fff2cc;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8px;
    color: black;
    cursor: pointer;
    border: 1px solid black;
}

.action-icon:hover {
    background-color: #ffe699;
}

.chart-content {
    padding: 12px;
}

.chart-placeholder {
    height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: white;
    border: 1px dashed black;
    border-radius: 4px;
}

.chart-line {
    display: flex;
    align-items: end;
    gap: 8px;
    height: 80px;
    margin-bottom: 8px;
}

.line-segment {
    width: 20px;
    background-color: #b3d9ff;
    border-radius: 2px;
    min-height: 10px;
}

.line-segment:nth-child(2) {
    background-color: #ffcc99;
}

.line-segment:nth-child(3) {
    background-color: #d9b3ff;
}

.line-segment:nth-child(4) {
    background-color: #b3ffb3;
}

.line-segment:nth-child(5) {
    background-color: #ffb3b3;
}

.line-segment:nth-child(6) {
    background-color: #b3b3ff;
}

.chart-axis {
    display: flex;
    justify-content: space-between;
    width: 100%;
    font-size: 10px;
    color: black;
}

.pie-chart {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: conic-gradient(
        #b3d9ff 0deg 45deg,
        #ffcc99 45deg 80deg,
        #d9b3ff 80deg 100deg
    );
    margin-bottom: 8px;
}

.chart-legend {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 11px;
    color: black;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.legend-item:nth-child(1) .legend-color {
    background-color: #b3d9ff;
}

.legend-item:nth-child(2) .legend-color {
    background-color: #ffcc99;
}

.legend-color {
    width: 12px;
    height: 12px;
    background-color: #b3d9ff;
    border-radius: 2px;
    border: 1px solid black;
}

/* Table Styles */
.table-card {
    border: 1px solid black;
    border-radius: 6px;
    background-color: white;
    overflow: hidden;
}

.table-header {
    background-color: #f0e6ff;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid black;
}

.table-header h3 {
    font-size: 14px;
    font-weight: 600;
    color: black;
    margin: 0;
}

.table-actions {
    display: flex;
    gap: 4px;
}

.table-content {
    padding: 0;
}

.table-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 8px;
    padding: 8px 12px;
    border-bottom: 1px solid black;
    font-size: 13px;
}

.table-row:last-child {
    border-bottom: none;
}

.table-row:nth-child(odd) {
    background-color: #f9f9f9;
}

.table-row:nth-child(even) {
    background-color: #f0f8ff;
}

.table-row.header {
    background-color: #fafafa;
    font-weight: 600;
    color: black;
    border-bottom: 2px solid black;
}

.table-cell {
    padding: 4px 0;
    color: black;
}

.table-cell.positive {
    color: #4d994d;
    font-weight: 500;
}

.table-cell.negative {
    color: #cc6666;
    font-weight: 500;
}

/* Chat Styles */
.chat-card {
    border: 1px solid black;
    border-radius: 6px;
    background-color: white;
    overflow: hidden;
    height: 200px;
    display: flex;
    flex-direction: column;
}

.chat-header {
    background-color: #e6ffe6;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid black;
}

.chat-header h3 {
    font-size: 14px;
    font-weight: 600;
    color: black;
    margin: 0;
}

.chat-status {
    font-size: 11px;
    color: #4d994d;
    font-weight: 500;
}

.chat-messages {
    flex: 1;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow-y: auto;
    background-color: white;
}

.message {
    display: flex;
    margin-bottom: 4px;
}

.message.user {
    justify-content: flex-end;
}

.message.assistant {
    justify-content: flex-start;
}

.message-content {
    max-width: 80%;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
    line-height: 1.4;
}

.message.user .message-content {
    background-color: #e6f3ff;
    color: black;
}

.message.assistant .message-content {
    background-color: #fff2cc;
    color: black;
    border: 1px solid black;
}

.chat-input {
    padding: 8px 12px;
    display: flex;
    gap: 8px;
    border-top: 1px solid black;
    background-color: white;
}

.chat-input input {
    flex: 1;
    padding: 6px 10px;
    border: 1px solid black;
    border-radius: 4px;
    font-size: 13px;
    background-color: white;
}

.chat-input input:focus {
    outline: none;
    border-color: black;
    background-color: #ffe6cc;
}

.send-button {
    padding: 6px 12px;
    background-color: black;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.send-button:hover {
    background-color: #cc6666;
}

/* Documentation Section */
.documentation,
.documentation h2,
.doc-grid,
.doc-card,
.doc-card:hover,
.doc-card i,
.doc-card h3,
.doc-card p {
    display: none;
}

/* Community Section */
.community,
.community h2,
.community-grid,
.community-card,
.community-card:hover,
.community-card i,
.community-card h3,
.community-card p {
    display: none;
}

/* Footer */
.footer {
    background-color: var(--background);
    color: var(--foreground);
    padding: 1rem 2rem;
    border-top: 1px solid var(--border);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: var(--text-xs);
    color: var(--muted-foreground);
    font-family: var(--font-family-sans);
}

.footer-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.social-link {
    color: var(--muted-foreground);
    text-decoration: none;
    transition: color 0.2s;
    display: flex;
    align-items: center;
}

.social-link:hover {
    color: var(--foreground);
}

.social-link i {
    font-size: var(--text-base);
}

.footer-link {
    color: var(--muted-foreground);
    text-decoration: none;
    transition: color 0.2s;
    font-family: var(--font-family-sans);
    font-size: var(--text-sm);
}

.footer-link:hover {
    color: var(--foreground);
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 0.6s ease forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero {
        padding: 4rem 1.5rem;
        flex-direction: column;
        gap: 3rem;
        min-height: auto;
    }

    .hero-content {
        text-align: center;
        order: 1;
        width: 100%;
    }

    .hero h1 {
        font-size: var(--text-5xl);
        margin-bottom: 1rem;
    }

    .hero .subtitle {
        font-size: var(--text-lg);
        margin-bottom: 1.5rem;
    }

    .hero-buttons {
        margin-top: 1.5rem;
    }

    .hero-visual {
        order: 2;
        margin: 0;
        width: 100%;
        max-width: 100%;
    }

    .app-preview {
        max-width: 100%;
        max-height: 600px;
    }

    .app-content {
        flex-direction: column;
        height: auto;
        gap: 1rem;
    }
    
    .app-sidebar {
        width: 100%;
        flex-direction: row;
        padding: 0.75rem;
    }
    
    .sidebar-header {
        padding-bottom: 0;
        border-bottom: none;
        border-right: 1px solid var(--border);
        padding-right: 1rem;
        margin-right: 1rem;
    }
    
    .sidebar-nav {
        flex-direction: row;
        gap: 1rem;
    }
    
    .nav-item {
        padding: 0.5rem 0.75rem;
    }
    
    .charts-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .controls-row {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .control-group {
        min-width: auto;
    }

    /* Masonry responsive adjustments */
    .feature-grid {
        gap: 1rem;
        justify-content: center;
    }

    .feature-card {
        width: 100%;
        max-width: 280px;
        min-width: auto;
        height: auto !important;
        min-height: 140px;
        padding: 1.25rem;
    }

    /* Remove fixed heights on small mobile for better content flow */
    .feature-card:nth-child(1),
    .feature-card:nth-child(2),
    .feature-card:nth-child(3),
    .feature-card:nth-child(4),
    .feature-card:nth-child(5),
    .feature-card:nth-child(6),
    .feature-card:nth-child(7),
    .feature-card:nth-child(8),
    .feature-card:nth-child(9) {
        height: auto;
        min-height: 140px;
    }
}

@media (max-width: 768px) {
    .nav-container {
        padding: 0.5rem 1rem;
    }

    .nav-links {
        display: none;
    }

    .hero {
        padding: 2rem 1rem 3rem;
        text-align: center;
        gap: 2rem;
        min-height: auto;
    }

    .hero-content {
        order: 1;
        width: 100%;
        max-width: 100%;
    }

    .hero h1 {
        font-size: var(--text-4xl);
        line-height: var(--leading-tight);
        margin-bottom: 1rem;
    }

    .hero .subtitle {
        font-size: var(--text-lg);
        line-height: var(--leading-relaxed);
        margin-bottom: 1.5rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        margin-top: 1.5rem;
        gap: 0.75rem;
    }

    .button {
        width: 100%;
        max-width: 300px;
        justify-content: center;
        padding: 0.875rem 1.5rem;
    }

    .terminal {
        margin: 1rem 0;
        width: 100%;
        max-width: 100%;
    }

    .terminal-content {
        padding: 0.75rem;
        font-size: var(--text-xs);
    }

    .hero-visual {
        order: 2;
        width: 100%;
        max-width: 100%;
        margin: 0;
    }

    .app-preview {
        margin: 0;
        max-height: 500px;
        border-width: 1px;
    }
    
    .app-content {
        padding: 0.75rem;
        gap: 0.75rem;
        max-height: 450px;
    }

    .data-viz {
        padding: 1.5rem;
    }

    .chart-placeholder i {
        font-size: var(--text-3xl);
    }

    .value-prop {
        padding: 3rem 1rem;
    }

    .value-content h2 {
        font-size: var(--text-2xl);
        line-height: var(--leading-tight);
    }

    .value-subtitle {
        font-size: var(--text-base);
        line-height: var(--leading-relaxed);
        margin-bottom: 2rem;
    }

    .value-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
    }

    .value-card {
        padding: 1.5rem;
        text-align: center;
    }

    .value-card h3 {
        font-size: var(--text-lg);
    }

    .value-card p {
        font-size: var(--text-sm);
    }

    .use-cases {
        padding: 4rem 1rem;
    }

    .use-cases h2 {
        font-size: var(--text-3xl);
    }

    .use-cases > p {
        font-size: var(--text-lg);
    }

    .use-case-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .use-case-card {
        padding: 1.5rem;
    }

    .getting-started {
        padding: 4rem 1rem;
    }

    .getting-started h2 {
        font-size: var(--text-3xl);
    }

    .getting-started > p {
        font-size: var(--text-lg);
    }

    .example-preview {
        margin-top: 2rem;
    }

    .example-preview h3 {
        font-size: var(--text-xl);
    }

    .code-preview pre {
        padding: 1rem;
        font-size: var(--text-xs);
    }

    .cta-section {
        padding: 4rem 1rem;
    }

    .cta-section h2 {
        font-size: var(--text-3xl);
    }

    .cta-section p {
        font-size: var(--text-lg);
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .button-primary,
    .button-secondary {
        width: 100%;
        max-width: 300px;
    }

    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .footer-right {
        justify-content: center;
    }

    .github-link .star-count {
        display: none;
    }

    .github-link .star-count i {
        display: none;
    }

    .mobile-nav-link.github-link {
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

    .mobile-nav-link .star-count {
        display: inline-flex;
        align-items: center;
        gap: 0.25rem;
        font-size: var(--text-xs);
        color: var(--muted-foreground);
    }

    .mobile-nav-link .star-count i {
        display: inline;
        font-size: var(--text-xs);
    }

    .hero-visual {
        order: 2;
        width: 100%;
        max-width: 100%;
    }

    .app-preview {
        margin: 0;
        max-height: 500px;
    }

    .app-content {
        padding: 0.75rem;
        gap: 0.75rem;
        max-height: 450px;
    }

    .app-sidebar {
        padding: 0.5rem;
    }

    .sidebar-header {
        padding-right: 0.75rem;
        margin-right: 0.75rem;
    }

    .sidebar-nav {
        gap: 0.5rem;
    }

    .nav-item {
        padding: 0.375rem 0.5rem;
    }

    .nav-text {
        font-size: var(--text-xs);
    }

    .app-main {
        gap: 0.75rem;
    }

    .app-section {
        gap: 0.5rem;
    }

    .app-heading {
        font-size: var(--text-sm);
    }

    .app-description {
        font-size: var(--text-xs);
    }

    .chart-card {
        min-height: 100px;
    }

    .chart-placeholder {
        height: 60px;
    }

    .chart-line {
        height: 40px;
    }

    .pie-chart {
        width: 40px;
        height: 40px;
    }

    .table-row {
        grid-template-columns: 1fr 1fr;
        padding: 0.375rem;
        font-size: var(--text-xs);
    }

    .table-row.header {
        font-weight: var(--font-medium);
    }

    .table-cell:nth-child(3),
    .table-cell:nth-child(4) {
        display: none;
    }

    .chat-card {
        height: 100px;
    }

    .chat-messages {
        padding: 0.375rem;
    }

    .message-content {
        font-size: var(--text-xs);
    }

    .chat-input {
        padding: 0.375rem;
    }

    .chat-input input {
        font-size: var(--text-xs);
        padding: 0.25rem 0.5rem;
    }

    .send-button {
        padding: 0.25rem 0.5rem;
        font-size: var(--text-xs);
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 1.5rem 0.75rem 2rem;
        gap: 1.5rem;
    }

    .hero-content {
        order: 1;
        width: 100%;
        max-width: 100%;
    }

    .hero h1 {
        font-size: var(--text-3xl);
        line-height: var(--leading-tight);
        margin-bottom: 0.75rem;
    }

    .hero .subtitle {
        font-size: var(--text-base);
        line-height: var(--leading-relaxed);
        margin-bottom: 1rem;
    }

    .hero-buttons {
        margin-top: 1rem;
        gap: 0.5rem;
    }

    .button {
        width: 100%;
        max-width: 100%;
        padding: 0.75rem 1rem;
        font-size: var(--text-sm);
    }

    .terminal {
        margin: 0.75rem 0;
        width: 100%;
    }

    .terminal-content {
        padding: 0.5rem;
        font-size: var(--text-xs);
    }

    .terminal-content pre {
        font-size: var(--text-xs);
    }

    .hero-visual {
        order: 2;
        width: 100%;
        max-width: 100%;
        margin: 0;
    }

    .app-preview {
        margin: 0;
        max-height: 400px;
        border-width: 1px;
        border-radius: 6px;
    }

    .app-content {
        gap: 0.5rem;
        max-height: 350px;
        padding: 0.5rem;
    }

    .app-sidebar {
        padding: 0.25rem;
    }

    .sidebar-header {
        padding-right: 0.5rem;
        margin-right: 0.5rem;
    }

    .sidebar-nav {
        gap: 0.25rem;
    }

    .nav-item {
        padding: 0.25rem;
    }

    .nav-text {
        font-size: var(--text-xs);
    }

    .app-main {
        gap: 0.5rem;
    }

    .app-section {
        gap: 0.375rem;
    }

    .app-heading {
        font-size: var(--text-xs);
        margin-bottom: 0.25rem;
    }

    .app-description {
        font-size: var(--text-xs);
        margin-bottom: 0.5rem;
    }

    .controls-row {
        gap: 0.5rem;
    }

    .control-group {
        gap: 0.25rem;
    }

    .control-label {
        font-size: var(--text-xs);
    }

    .select-control {
        padding: 0.25rem 0.5rem;
        font-size: var(--text-xs);
    }

    .slider-control {
        gap: 0.25rem;
    }

    .slider-value {
        font-size: var(--text-xs);
    }

    .chart-card {
        min-height: 80px;
        padding: 0.5rem;
    }

    .chart-header h3 {
        font-size: var(--text-xs);
    }

    .chart-placeholder {
        height: 50px;
    }

    .chart-line {
        height: 30px;
    }

    .line-segment {
        width: 8px;
    }

    .chart-axis {
        font-size: var(--text-xs);
        gap: 0.25rem;
    }

    .pie-chart {
        width: 30px;
        height: 30px;
    }

    .chart-legend {
        gap: 0.25rem;
    }

    .legend-item {
        font-size: var(--text-xs);
        gap: 0.25rem;
    }

    .table-card {
        padding: 0.5rem;
    }

    .table-header h3 {
        font-size: var(--text-xs);
    }

    .table-row {
        grid-template-columns: 1fr;
        padding: 0.25rem;
        font-size: var(--text-xs);
        gap: 0.25rem;
    }

    .table-cell {
        padding: 0.25rem;
    }

    .table-cell:nth-child(2) {
        display: none;
    }

    .chat-card {
        height: 80px;
        padding: 0.5rem;
    }

    .chat-header h3 {
        font-size: var(--text-xs);
    }

    .chat-status {
        font-size: var(--text-xs);
    }

    .chat-messages {
        padding: 0.25rem;
        gap: 0.25rem;
    }

    .message-content {
        font-size: var(--text-xs);
        padding: 0.25rem 0.5rem;
    }

    .chat-input {
        padding: 0.25rem;
        gap: 0.25rem;
    }

    .chat-input input {
        font-size: var(--text-xs);
        padding: 0.25rem 0.5rem;
    }

    .send-button {
        padding: 0.25rem 0.5rem;
        font-size: var(--text-xs);
    }

    .app-layout {
        flex-direction: column;
    }

    .app-sidebar {
        width: 100%;
        height: auto;
    }

    .app-grid {
        grid-template-columns: 1fr;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .features h2 {
        font-size: var(--text-2xl);
    }

    .getting-started h2 {
        font-size: var(--text-2xl);
    }

    .value-prop {
        padding: 2rem 1rem;
    }

    .value-content h2 {
        font-size: var(--text-2xl);
        line-height: var(--leading-tight);
    }

    .value-subtitle {
        font-size: var(--text-sm);
        line-height: var(--leading-relaxed);
        margin-bottom: 1.5rem;
    }

    .value-card,
    .use-case-card {
        padding: 1rem;
    }

    .value-card {
        text-align: center;
    }

    .value-card h3 {
        font-size: var(--text-base);
    }

    .value-card p {
        font-size: var(--text-xs);
    }

    .value-icon,
    .use-case-icon {
        width: 2.5rem;
        height: 2.5rem;
    }

    .value-icon i,
    .use-case-icon i {
        font-size: var(--text-lg);
    }
}

/* CTA Section (container card) */
.cta-section {
    background-color: #fff;
    border-radius: 0.75rem; /* slightly smaller: ~rounded-xl */
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
    max-width: 1200px;
    margin: 2rem auto;
    padding: 2.5rem 1.25rem;
    text-align: center;
  }
  
  /* Inner wrapper */
  .cta-content {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
  }
  
  /* Heading */
  .cta-section h2 {
    font-size: var(--text-3xl); /* smaller than before */
    font-weight: var(--font-bold);
    line-height: var(--leading-tight);
    color: var(--foreground);
    letter-spacing: var(--tracking-tight);
  }
  
  /* Subtext */
  .cta-section p {
    font-size: var(--text-base);
    color: var(--muted-foreground);
    max-width: 600px;
    margin: 0 auto;
    line-height: var(--leading-relaxed);
    font-weight: var(--font-normal);
    letter-spacing: var(--tracking-normal);
  }
  
  /* Button group */
  .cta-buttons {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
  }
  
  /* Primary Button */
  .button-primary {
    background-color: var(--primary);
    color: var(--primary-foreground);
    padding: 0.625rem 1.25rem;
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    border: none;
    border-radius: 0.625rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
    font-family: var(--font-family-sans);
  }
  
  .button-primary:hover {
    background-color: #111;
  }
  
  /* Secondary Button */
  .button-secondary {
    background-color: white;
    color: var(--foreground);
    padding: 0.625rem 1.25rem;
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    border-radius: 0.625rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
    font-family: var(--font-family-sans);
  }
  
  .button-secondary:hover {
    background-color: rgba(0, 0, 0, 0.02);
  }
  
  /* Responsive */
  @media (max-width: 768px) {
    .cta-section {
      padding: 2rem 1rem;
    }
  
    .cta-section h2 {
      font-size: var(--text-2xl);
    }
  
    .cta-section p {
      font-size: var(--text-sm);
    }
  
    .cta-buttons {
      flex-direction: column;
    }
  
    .button-primary,
    .button-secondary {
      width: 100%;
    }
  }
  
/* Mobile Menu Styles */
.mobile-menu-button {
    display: none;
    background: none;
    border: none;
    color: var(--foreground);
    font-size: var(--text-2xl);
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    background-color: var(--background);
    z-index: 1000;
    padding: 5rem 2rem 2rem;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-menu-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--foreground);
    font-size: var(--text-2xl);
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    color: var(--foreground);
    text-decoration: none;
    font-weight: var(--font-medium);
    border-radius: var(--radius);
    transition: all 0.2s;
    font-size: var(--text-base);
    font-family: var(--font-family-sans);
}

.mobile-nav-link:hover {
    background-color: var(--muted);
}

.mobile-nav-link i {
    font-size: var(--text-xl);
    width: 1.5rem;
    text-align: center;
}

.mobile-nav-link.github-link {
    background-color: #000000;
    color: #ffffff;
    padding: 0.25rem 0.375rem;
}

.mobile-nav-link.demo-link {
    background-color: var(--primary);
    color: var(--primary-foreground);
}

.mobile-nav-link.demo-link:hover {
    opacity: 0.9;
}

.mobile-nav-link.github-link:hover {
    background-color: #111111;
    color: #ffffff;
}

@media (max-width: 768px) {
    .mobile-menu-button {
        display: block;
    }

    .nav-links {
        display: none;
    }

    .mobile-menu {
        display: block;
    }

    .nav-container {
        padding: 0.75rem 1rem;
    }

    .logo img {
        height: 1.5rem;
    }
}

.github-link .fa-github,
.mobile-nav-link.github-link .fa-github {
    font-size: var(--text-xl);
}

.steps-horizontal {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 40px;
  margin-top: 2.5rem;
  margin-bottom: 2.5rem;
  flex-wrap: nowrap;
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.step-horizontal {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 340px;
  text-align: center;
  background: none;
  box-shadow: none;
  border: none;
  padding: 0;
}

.step-number-circle {
  width: 56px;
  height: 56px;
  background: #111;
  color: #fff;
  border-radius: 50%;
  font-size: 2rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.step-command {
  background: none;
  color: #222;
  font-family: 'Menlo', 'Monaco', 'Consolas', monospace;
  font-size: 1.1rem;
  padding: 0.2rem 0;
  border-radius: 0;
  margin-top: 0.5rem;
  word-break: break-all;
  display: inline-block;
}

/* Remove old step box styles if present */
.step {
  background: none !important;
  box-shadow: none !important;
  border: none !important;
  padding: 0 !important;
}

@media (max-width: 900px) {
  .steps-horizontal {
    gap: 48px;
    max-width: 100vw;
    padding-left: 16px;
    padding-right: 16px;
  }
  .step-horizontal {
    min-width: 260px;
  }
}

@media (max-width: 700px) {
  .steps-horizontal {
    flex-direction: column;
    align-items: center;
    gap: 40px;
    overflow-x: unset;
    padding-left: 0;
    padding-right: 0;
  }
  .step-horizontal {
    min-width: 0;
    width: 100%;
    max-width: 340px;
  }
}

/* Value Proposition Section */
.value-prop {
    padding: 6rem 2rem;
    background-color: var(--background);
    text-align: center;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
    overflow: hidden;
}

.value-content {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    overflow: hidden;
}

.value-content h2 {
    font-size: var(--text-4xl);
    font-weight: var(--font-bold);
    margin-bottom: 1rem;
    color: var(--foreground);
    letter-spacing: var(--tracking-tight);
    line-height: var(--leading-tight);
}

.value-subtitle {
    font-size: var(--text-xl);
    color: var(--muted-foreground);
    margin-bottom: 3rem;
    font-weight: var(--font-normal);
    line-height: var(--leading-relaxed);
    letter-spacing: var(--tracking-normal);
}

.value-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 3rem;
    width: 100%;
    max-width: 100%;
}

.value-card {
    background-color: var(--card);
    padding: 2rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    text-align: left;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    word-wrap: break-word;
    word-break: break-word;
    position: relative;
}

.value-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        rgba(0, 255, 255, 0.3),   /* Cyan */
        rgba(255, 255, 0, 0.3),   /* Yellow */
        rgba(128, 0, 128, 0.3),   /* Purple */
        rgba(0, 255, 0, 0.3),     /* Green */
        rgba(255, 0, 0, 0.3),     /* Red */
        rgba(0, 0, 255, 0.3),     /* Blue */
        rgba(255, 165, 0, 0.3)    /* Orange */
    );
    opacity: 0;
    transition: opacity 0.3s ease;
}

.value-card:hover::before {
    opacity: 1;
}

.value-card:hover {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.value-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #000000 0%, #333333 100%);
}

.value-icon i {
    font-size: var(--text-xl);
    color: white;
}

.value-card h3 {
    font-size: var(--text-xl);
    font-weight: var(--font-semibold);
    margin-bottom: 1rem;
    color: var(--foreground);
    letter-spacing: var(--tracking-tight);
}

.value-card p {
    color: var(--muted-foreground);
    line-height: var(--leading-relaxed);
    font-size: var(--text-base);
    font-weight: var(--font-normal);
    letter-spacing: var(--tracking-normal);
}

/* Use Cases Section */
.use-cases {
    padding: 6rem 2rem;
    background-color: var(--background);
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
}

.use-cases h2 {
    font-size: var(--text-4xl);
    font-weight: var(--font-bold);
    text-align: center;
    margin-bottom: 1rem;
    color: var(--foreground);
    letter-spacing: var(--tracking-tight);
    line-height: var(--leading-tight);
}

.use-cases > p {
    font-size: var(--text-xl);
    color: var(--muted-foreground);
    text-align: center;
    margin-bottom: 4rem;
    font-weight: var(--font-normal);
    line-height: var(--leading-relaxed);
    letter-spacing: var(--tracking-normal);
}

.use-case-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.use-case-card {
    background-color: var(--card);
    padding: 2rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.use-case-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        rgba(0, 255, 255, 0.3),   /* Cyan */
        rgba(255, 255, 0, 0.3),   /* Yellow */
        rgba(128, 0, 128, 0.3),   /* Purple */
        rgba(0, 255, 0, 0.3),     /* Green */
        rgba(255, 0, 0, 0.3),     /* Red */
        rgba(0, 0, 255, 0.3),     /* Blue */
        rgba(255, 165, 0, 0.3)    /* Orange */
    );
    opacity: 0;
    transition: opacity 0.3s ease;
}

.use-case-card:hover::before {
    opacity: 1;
}

.use-case-card:hover {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.use-case-icon {
    width: 3rem;
    height: 3rem;
    background: linear-gradient(135deg, #000000 0%, #333333 100%);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.use-case-icon i {
    font-size: var(--text-xl);
    color: white;
}

.use-case-card h3 {
    font-size: var(--text-xl);
    font-weight: var(--font-semibold);
    margin-bottom: 1rem;
    color: var(--foreground);
    letter-spacing: var(--tracking-tight);
}

.use-case-card p {
    color: var(--muted-foreground);
    line-height: var(--leading-relaxed);
    margin-bottom: 1rem;
    font-size: var(--text-base);
    font-weight: var(--font-normal);
    letter-spacing: var(--tracking-normal);
    flex-grow: 1;
}

.use-case-example {
    background-color: var(--muted);
    padding: 0.75rem;
    border-radius: var(--radius);
    font-size: var(--text-sm);
    color: var(--foreground);
    font-family: var(--font-family-mono);
    line-height: var(--leading-normal);
    margin-top: auto;
    position: relative;
    overflow: hidden;
}

.use-case-example::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, 
        rgba(0, 255, 255, 0.3),   /* Cyan */
        rgba(255, 255, 0, 0.3),   /* Yellow */
        rgba(128, 0, 128, 0.3),   /* Purple */
        rgba(0, 255, 0, 0.3),     /* Green */
        rgba(255, 0, 0, 0.3),     /* Red */
        rgba(0, 0, 255, 0.3),     /* Blue */
        rgba(255, 165, 0, 0.3)    /* Orange */
    );
}

/* Enhanced Getting Started Section */
.getting-started {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.04);
    padding: 3rem 2rem 2.5rem 2rem;
    margin-top: 3rem;
    margin-bottom: 3rem;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
}

.getting-started h2 {
    font-size: var(--text-4xl);
    font-weight: var(--font-bold);
    margin-bottom: 1rem;
    color: var(--foreground);
    letter-spacing: var(--tracking-tight);
    line-height: var(--leading-tight);
}

.getting-started > p {
    font-size: var(--text-xl);
    color: var(--muted-foreground);
    margin-bottom: 4rem;
    font-weight: var(--font-normal);
    line-height: var(--leading-relaxed);
    letter-spacing: var(--tracking-normal);
}

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    max-width: 900px;
    margin: 0 auto 4rem auto;
}

.step {
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    border-left: 3px solid #000000;
}

.step:first-child {
    border-top-left-radius: var(--radius);
    border-bottom-left-radius: var(--radius);
}

.step:last-child {
    border-top-right-radius: var(--radius);
    border-bottom-right-radius: var(--radius);
}

.step:hover {
    background: var(--secondary);
    border-color: var(--ring);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.step-number {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #000000 0%, #333333 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: var(--font-semibold);
    font-size: var(--text-lg);
    margin: 0 auto 1rem;
    transition: all 0.3s ease;
}

.step:hover .step-number {
    transform: scale(1.1);
}

.step h3 {
    font-size: var(--text-lg);
    font-weight: var(--font-semibold);
    margin-bottom: 0.75rem;
    color: var(--foreground);
    letter-spacing: var(--tracking-tight);
}

.step p {
    color: var(--muted-foreground);
    line-height: var(--leading-relaxed);
    margin-bottom: 1rem;
    font-size: var(--text-base);
    font-weight: var(--font-normal);
    letter-spacing: var(--tracking-normal);
}

.step pre {
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem;
    overflow-x: auto;
    position: relative;
    margin-top: 0.75rem;
}

.step code {
    font-family: var(--font-family-mono);
    font-size: var(--text-sm);
    color: var(--foreground);
    line-height: var(--leading-normal);
}

.example-preview {
    margin-top: 4rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.example-preview h3 {
    font-size: var(--text-2xl);
    font-weight: var(--font-semibold);
    margin-bottom: 1.5rem;
    color: var(--foreground);
    text-align: left;
    letter-spacing: var(--tracking-tight);
}

.code-preview {
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.code-preview pre {
    margin: 0;
    padding: 1.5rem;
    background-color: #1e1e1e;
    color: #ffffff;
    font-family: var(--font-family-mono);
    font-size: var(--text-sm);
    line-height: var(--leading-normal);
    overflow-x: auto;
    text-align: left;
}

.code-preview code {
    color: #ffffff;
    background: none;
    padding: 0;
    font-family: var(--font-family-mono);
}

/* Features Section */
.features {
    padding: 4rem 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    text-align: left;
}

.features h2 {
    font-size: var(--text-4xl);
    font-weight: var(--font-bold);
    color: var(--foreground);
    margin-bottom: 1rem;
    letter-spacing: var(--tracking-tight);
    line-height: var(--leading-tight);
}

.features p {
    font-size: var(--text-xl);
    color: var(--muted-foreground);
    margin-bottom: 2.5rem;
    max-width: 800px;
    line-height: var(--leading-relaxed);
    font-weight: var(--font-normal);
    letter-spacing: var(--tracking-normal);
}

.feature-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    align-items: flex-start;
    padding: 1rem 0;
}

.feature-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    padding: 1.75rem;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    cursor: default;
    width: calc(33.333% - 1rem);
    min-width: 280px;
    max-width: 380px;
    position: relative;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

/* Varying heights for masonry effect */
.feature-card:nth-child(1) { height: 200px; }
.feature-card:nth-child(2) { height: 240px; }
.feature-card:nth-child(3) { height: 180px; }
.feature-card:nth-child(4) { height: 220px; }
.feature-card:nth-child(5) { height: 260px; }
.feature-card:nth-child(6) { height: 190px; }
.feature-card:nth-child(7) { height: 230px; }
.feature-card:nth-child(8) { height: 210px; }
.feature-card:nth-child(9) { height: 250px; }

.feature-card:hover {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        rgba(0, 255, 255, 0.3),   /* Cyan */
        rgba(255, 255, 0, 0.3),   /* Yellow */
        rgba(128, 0, 128, 0.3),   /* Purple */
        rgba(0, 255, 0, 0.3),     /* Green */
        rgba(255, 0, 0, 0.3),     /* Red */
        rgba(0, 0, 255, 0.3),     /* Blue */
        rgba(255, 165, 0, 0.3)    /* Orange */
    );
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card i {
    font-size: var(--text-xl);
    color: rgba(0, 0, 0, 0.6);
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

/* Different tetris colors for different feature cards */
.feature-card:nth-child(1) i { color: rgba(128, 0, 128, 0.4); }      /* Purple */
.feature-card:nth-child(2) i { color: rgba(128, 0, 128, 0.4); }      /* Purple */
.feature-card:nth-child(3) i { color: rgba(128, 0, 128, 0.4); }      /* Purple */
.feature-card:nth-child(4) i { color: rgba(128, 0, 128, 0.4); }      /* Purple */
.feature-card:nth-child(5) i { color: rgba(128, 0, 128, 0.4); }      /* Purple */
.feature-card:nth-child(6) i { color: rgba(128, 0, 128, 0.4); }      /* Purple */
.feature-card:nth-child(7) i { color: rgba(128, 0, 128, 0.4); }      /* Purple */
.feature-card:nth-child(8) i { color: rgba(128, 0, 128, 0.4); }      /* Purple */
.feature-card:nth-child(9) i { color: rgba(128, 0, 128, 0.4); }      /* Purple */

.feature-card:hover i {
    color: var(--foreground);
    transform: scale(1.05);
    opacity: 0.8;
}

/* Enhanced hover colors for each feature card */
.feature-card:nth-child(1):hover i { color: rgba(128, 0, 128, 0.7); }      /* Purple */
.feature-card:nth-child(2):hover i { color: rgba(128, 0, 128, 0.7); }      /* Purple */
.feature-card:nth-child(3):hover i { color: rgba(128, 0, 128, 0.7); }      /* Purple */
.feature-card:nth-child(4):hover i { color: rgba(128, 0, 128, 0.7); }      /* Purple */
.feature-card:nth-child(5):hover i { color: rgba(128, 0, 128, 0.7); }      /* Purple */
.feature-card:nth-child(6):hover i { color: rgba(128, 0, 128, 0.7); }      /* Purple */
.feature-card:nth-child(7):hover i { color: rgba(128, 0, 128, 0.7); }      /* Purple */
.feature-card:nth-child(8):hover i { color: rgba(128, 0, 128, 0.7); }      /* Purple */
.feature-card:nth-child(9):hover i { color: rgba(128, 0, 128, 0.7); }      /* Purple */

.feature-card h3 {
    font-size: var(--text-lg);
    font-weight: var(--font-semibold);
    color: var(--foreground);
    margin: 0;
    letter-spacing: var(--tracking-tight);
    line-height: var(--leading-tight);
    transition: color 0.3s ease;
}

.feature-card p {
    font-size: var(--text-sm);
    color: var(--muted-foreground);
    margin: 0;
    line-height: var(--leading-relaxed);
    font-weight: var(--font-normal);
    letter-spacing: var(--tracking-normal);
    flex-grow: 1;
    transition: color 0.3s ease;
}

.feature-card:hover h3 {
    color: var(--foreground);
}

.feature-card:hover p {
    color: var(--muted-foreground);
}

/* Backed by pill styles */
.backed-by-pill {
    margin-bottom: 2rem;
}

.backed-by-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
        font-size: var(--text-xs);
    color: var(--muted-foreground);
    border: 1px solid var(--border);
    border-radius: 9999px;
    padding: 0.5rem 0.75rem;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(8px);
    text-decoration: none;
    transition: all 0.2s ease;
}

.backed-by-link:hover {
    background-color: var(--muted);
    border-color: var(--muted-foreground);
    color: var(--foreground);
}

.backed-by-logo {
    height: 1.2rem;
    width: auto;
    opacity: 0.8;
    transition: opacity 0.2s ease;
    margin-right: 0.2rem;
}

.backed-by-link:hover .backed-by-logo {
    opacity: 1;
}
  